﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administration/Administration.master" AutoEventWireup="true" CodeBehind="UploadNewsletters.aspx.cs" Inherits="Hydra.Web.Administration.UploadNewsletters" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminHeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 177px;
        }
        .style3
        {
            width: 239px;
        }
        .style4
    {
        width: 168px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminMainContent" runat="server">
    <table>
        <tr>
            <td>
                <asp:ValidationSummary ID="ValidationSummary" runat="server" ForeColor="Red" 
                    ValidationGroup="NewsletterUploads" />
                <asp:CustomValidator ID="UploadValidator" runat="server" ValidationGroup="NewsletterUploads"
                    ErrorMessage=""></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td>
                <u>Newsletter Upload</u>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td class="style4">
                Weekly: 
            </td>
            <td align="right">
                <asp:FileUpload ID="WeeklyUpload" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td class="style4">
                Monthly Board Member: 
            </td>
            <td align="right">
                <asp:FileUpload ID="MonthlyBoardUpload" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td class="style4">
                Public Team: 
            </td>
            <td align="right">
                <asp:FileUpload ID="MonthlyTeamUpload" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td class="style4">
                SkyFrontNews: 
            </td>
            <td align="right">
                <asp:FileUpload ID="MonthlySkyFrontUpload" runat="server" Width="400px" />
            </td>
        </tr>
        <tr>
            <td class="style4"></td>
            <td align="right" class="style3">
                <asp:Button ID="cmdPost" runat="server" Text="Post" onclick="cmdPost_Click" />
            </td>
        </tr>
    </table>
    <br />
    <asp:GridView ID="NewsletterGridView" runat="server" AutoGenerateColumns="False">
        <Columns>
            <asp:BoundField DataField="DateUploaded" HeaderText="DateUploaded" 
                ReadOnly="True" SortExpression="DateUploaded" />
            <asp:BoundField DataField="NewletterFileName" HeaderText="NewletterFileName" 
                ReadOnly="True" SortExpression="NewletterFileName" />
            <asp:BoundField DataField="NewsletterTypeID" HeaderText="NewsletterTypeID" 
                ReadOnly="True" SortExpression="NewsletterTypeID" />
        </Columns>
    </asp:GridView>
</asp:Content>
